import json

with open("data.json", "r", encoding="utf-8") as f:
    datas = json.load(f)

for key, value in datas.items():
    print(key, value)

# #假设有一个字典
# my_dict = {
#     "name": "Alice",
#     "age": 30,
#     "city": "New York"
# }
#
# # 遍历字典中的键和值
# for key, value in my_dict.items():
#     print(f"Key: {key}, Value: {value}")
